package com.team2.outpatient_sys.pojo;

import java.util.List;

/**
 * 病人 实体类
 */
public class Patient {
    // 病人id
    private Integer id;
    // 病人姓名
    private String name;
    // 身份证号
    private String idCard;
    // 性别
    private String gender;
    // 生日
    private String birth;
    // 联系电话
    private String phone;
    // 病人住址
    private String address;

    private List<CaseHistory> caseHistoryList;

    public Patient() {
    }

    public Patient(Integer id, String name, String idCard, String gender, String birth, String phone, String address) {
        this.id = id;
        this.name = name;
        this.idCard = idCard;
        this.gender = gender;
        this.birth = birth;
        this.phone = phone;
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", gender='" + gender + '\'' +
                ", birth='" + birth + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public List<CaseHistory> getCaseHistoryList() {
        return caseHistoryList;
    }

    public void setCaseHistoryList(List<CaseHistory> caseHistoryList) {
        this.caseHistoryList = caseHistoryList;
    }
}
